﻿using AntdUI;

namespace WenAntdUI.Components;

[ToolboxItem(false)]
internal class MenuPidSelect : IControl
{
    IFreeSql fsql;
    public MenuPidSelect(IFreeSql fsql)
    {
        this.fsql = fsql;
        var items = fsql.Select<SysMenu>().ToTreeList();

        var button = new AntdUI.Button()
        {
            Dock = DockStyle.Right,
            Width = 80,
            IconSvg = "MenuOutlined"
        };

        this.Controls.Add(button);

        var input = new AntdUI.Input()
        {

        };

    }

    private class MenuPidSelectForm : WenForm
    {
        public MenuPidSelectForm(List<SysMenu> sysMenus)
        {
            this.Size = new System.Drawing.Size(500, 300);

            var tree = new AntdUI.Tree()
            {

                Dock = DockStyle.Fill,
            };

            this.Controls.Add(tree);
        }
    }
}
